<?php
namespace app\socket\controller;

use app\socket\Server;

class Index
{
    /**
     * WebSocket 建立连接
     */
    public function onOpen(): \think\swoole\response\Websocket
    {
        $server = new Server();
        return $server->onOpen();
    }
}